package acn.spring.domain;

import java.io.Serializable;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

public class Item implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7529418874268070977L;

	private int id;
	
	@NotEmpty
	private String name;
	
	@NotNull
	@Min(1)
	private Long price;

	public Item() {
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}
}
